package com.lwq.lwqmicoservice.framework.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2021/6/10
 */
@Configuration
public class WebFrameWorkConfig {

    /**
     * springsecurity加密类
     */
    @Bean
    public PasswordEncoder passwordencoder() {
        System.out.println("加载configuration bean");
        return new BCryptPasswordEncoder();
    }
}
